<template>
<div class="side-block-panel">
    <div class="side-block-head">
        <div class="icon" v-if="iconObj!=null"></div>
        <div class="title">{{title}}</div>
    </div>
    <div class="content">
        <slot name="content"></slot>
    </div>
</div>
</template>

<script>
export default {
    data() {
        return {
            iconObj: null,
        }
    },
    props: {
        title: String,
        iconUrl: String,
    },
    watch: {
        // iconUrl: {
        //     immediate: true,
        //     handler(val) {
        //         let me = this;
        //         if (val != void 0) {
        //             import('@/assets/' + val).then(result => {
        //                 me.iconObj = result.default;
        //             });
        //         }
        //     }
        // }
    },
    methods:{
    }
}
</script>

<style lang="scss" scoped>
.side-block-panel {
    height: 33%;
    //width: 20.9028vw; //301px 20.9028
    background: url(/src/assets/img/side-block-new.png) no-repeat;
    background-size: 100% 100%;
    .content {
        top: 2vh;
        height: calc(30.5vh - 4vh);
        position: relative;
        padding: 0 0.5556vw 0 0.5556vw;
    }
    .title{
      color: white;
      padding-left : 1.1vw;
      font-size: 18px;
      font-weight: 600;
    }
}
</style>
